package com.ctg.behavior.calc.feign.property;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.ctg.behavior.common.properties.CtPropertyValuesCalcRequest;
import com.ctg.behavior.common.properties.CtPropertyValuesCalcResult;
import com.ctg.behavior.common.properties.CtUserPropertiesCalcRequest;
import com.ctg.behavior.common.properties.CtUserPropertiesCalcResult;

// @FeignClient(value = "${provider.application.name}")
public interface CtPropertyFeignClient {

//	@GetMapping("/api/property/values")
//	public CtRowsResult values(@RequestParam("appId") String appId, @RequestParam("event") String event, @RequestParam("fuzzyStr") String fuzzyStr, @RequestParam("limit") Integer limit);

	// 查询属性字段的值信息，支持模糊查询
	@PostMapping("/api/property/values")
	public CtPropertyValuesCalcResult values(@RequestBody CtPropertyValuesCalcRequest request);

	// 根据设备信息(设备ID)查询用户属性信息
	@PostMapping("/api/property/user/values")
	public CtUserPropertiesCalcResult userValues(@RequestBody CtUserPropertiesCalcRequest request);

}
